package com.pn.controller;

import com.pn.entity.Result;
import com.pn.service.StoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/statistics")
@RestController
public class StatisticsController {

    @Autowired
    private StoreService storeService;

    @RequestMapping("/store-invent")
    public Result countStore() {
        return Result.ok(storeService.queryStoreCount());
    }
}
